package com.xbs.controller.backstage;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.xbs.controller.base.BaseServlet;
import com.xbs.entity.ModelManageEntity;
import com.xbs.service.selfdriving.ModelManageService;

/**
 * 车型管理
 * @author Administrator
 *
 */
@WebServlet("/backstage/modelmanageservlet")
public class ModelManageServlet extends BaseServlet {

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		doPost(req, resp);
	}
	
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		ModelManageService modelManageService = new ModelManageService();
		List<ModelManageEntity> modelManagelist = modelManageService.selAll();
		req.setAttribute("modelManage", modelManagelist);
		forward("admin/basicSetting/xw_modelManage");
	}
}
